package org.jeecg.common.service;


import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.entity.SysDepart;
import org.jeecg.common.entity.SysDepartTreeModel;
import org.jeecg.modules.online.config.exception.BusinessException;

import java.util.List;

/**
 * <p>
 * 部门表 服务实现类
 * <p>
 *
 * @Author:Steve
 * @Since： 2019-01-22
 */
public interface ISysDepartService extends IService<SysDepart> {


    /**
     * 获取我的部门下级所有部门
     *
     * @return
     */
    List<SysDepartTreeModel> queryTreeListByPid(String parentId, String ids);

    List<SysDepartTreeModel> queryTreeListByPidWithSelf(String parentId, String ids);



    List<SysDepartTreeModel> queryDepartTreeByOrgCode(String id);



}
